
//
//  OrderNet.m
//  beautyLamp
//
//  Created by Tam Kwok To Michael on 2017/8/24.
//  Copyright © 2017年 Tam Kwok To Michael. All rights reserved.
//

#import "OrderNet.h"
#import "BLHeader.h"
#import "BasicNetManager.h"
#import "BLOrder.h"
#import <YYModel.h>

@implementation OrderNet


#pragma mark 销售下订单
+ (void)salePlaceOrder:(NSDictionary *)param completer:(void(^)(id resultObject, NSError *error))completer {
    BasicNetManager *manager = [BasicNetManager share];
    [manager postURL:SALEPLACEORDER param:param completer:^(id result, NSError *error) {
        if (completer) {
            BLOrder *order;
            if (result) {
                order = [BLOrder yy_modelWithJSON:result];
            }
            completer(order, error);
        }
    }];

}

@end
